package com.cnpinxi.dao;

import com.cnpinxi.domain.Product;

import java.util.List;
import java.util.Map;

public interface ProductMapper {

    int deleteByPrimaryKey(Long tid);

    int insertProduct(Product record);

    Product getProductByProductId(Long productId);
    Product getProduct(Map<String, String> map);
    List<Product> getProductList(Map<String, String> map);

    int updateProductByPrimaryKeySelective(Product record);

    int updateProductById(Product record);

}